package vn.hocweb.entity;

import java.sql.Date;

public class CongCu extends Entity{
	private long maCongCu;
	
	private NguoiDung nguoiCapNhat;
	
	private String ten;
	private String moTa;
	private String hinhAnh;
	private String duongDan;
	private Date ngayCapNhat;		
	private int luotTaiVe;
	
	public CongCu(long maCongCu, String nguoiCapNhat, String ten,
			String moTa, String hinhAnh, String duongDan, Date ngayCapNhat,
			int luotTaiVe, int thuTu, boolean noiBat, boolean hienThi) {
		super(thuTu, noiBat, hienThi);
		this.maCongCu = maCongCu;
		this.nguoiCapNhat = new NguoiDung(nguoiCapNhat);
		this.ten = ten;
		this.moTa = moTa;
		this.hinhAnh = hinhAnh;
		this.duongDan = duongDan;
		this.ngayCapNhat = ngayCapNhat;
		this.luotTaiVe = luotTaiVe;
	}

	public long getMaCongCu() {
		return maCongCu;
	}

	public void setMaCongCu(long maCongCu) {
		this.maCongCu = maCongCu;
	}

	public NguoiDung getNguoiCapNhat() {
		return nguoiCapNhat;
	}

	public void setNguoiCapNhat(NguoiDung nguoiCapNhat) {
		this.nguoiCapNhat = nguoiCapNhat;
	}

	public String getTen() {
		return ten;
	}

	public void setTen(String ten) {
		this.ten = ten;
	}

	public String getMoTa() {
		return moTa;
	}

	public void setMoTa(String moTa) {
		this.moTa = moTa;
	}

	public String getHinhAnh() {
		return hinhAnh;
	}

	public void setHinhAnh(String hinhAnh) {
		this.hinhAnh = hinhAnh;
	}

	public String getDuongDan() {
		return duongDan;
	}

	public void setDuongDan(String duongDan) {
		this.duongDan = duongDan;
	}

	public Date getNgayCapNhat() {
		return ngayCapNhat;
	}

	public void setNgayCapNhat(Date ngayCapNhat) {
		this.ngayCapNhat = ngayCapNhat;
	}

	public int getLuotTaiVe() {
		return luotTaiVe;
	}

	public void setLuotTaiVe(int luotTaiVe) {
		this.luotTaiVe = luotTaiVe;
	}
	
}
